package com.surenpi.jenkins.client.core;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.surenpi.jenkins.client.BaseModel;

public class LastBuiltRevision extends BaseModel {
   @JsonProperty("SHA1")
   private String SHA1;

   public String getSHA1() {
      return this.SHA1;
   }

   public void setSHA1(final String SHA1) {
      this.SHA1 = SHA1;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof LastBuiltRevision)) {
         return false;
      } else {
         LastBuiltRevision other = (LastBuiltRevision)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$SHA1 = this.getSHA1();
            Object other$SHA1 = other.getSHA1();
            if (this$SHA1 == null) {
               if (other$SHA1 != null) {
                  return false;
               }
            } else if (!this$SHA1.equals(other$SHA1)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof LastBuiltRevision;
   }

   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $SHA1 = this.getSHA1();
      result = result * 59 + ($SHA1 == null ? 43 : $SHA1.hashCode());
      return result;
   }

   public String toString() {
      return "LastBuiltRevision(SHA1=" + this.getSHA1() + ")";
   }
}
